{include file="public/header" /}
<body class="childrenBody">
	<form class="layui-form">
		<div class="layui-tab">
			<ul class="layui-tab-title">
				<li class="layui-this">基本档案</li>
				<li>车型库权限</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<label class="layui-form-label">企业名称</label>
						<div class="layui-input-block">
							<input type="text" name="CompName" class="layui-input" lay-verify="required" placeholder="请输入企业名称" value="{$view.comp_name}" >
						</div>
					</div>
					 <div class="layui-form-item">
						<label class="layui-form-label">主体类型</label>
						<div class="layui-input-block">
							<input type="radio" name="CompType" value="1" title="生产制造商" {eq name="$view.comp_type" value="1"}checked{/eq}>
							<input type="radio" name="CompType" value="2" title="品牌运营商" {eq name="$view.comp_type" value="1"}checked{/eq}>
							<input type="radio" name="CompType" value="3" title="渠道经销商" {eq name="$view.comp_type" value="1"}checked{/eq}>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">登录手机号</label>
						<div class="layui-input-block">
							<input type="text" name="SupplierMobile" class="layui-input" lay-verify="required" placeholder="请输入登录手机号" value="{$view.supplier_mobile}" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">登录密码</label>
						<div class="layui-input-block">
							<input type="password" name="SupplierPass" class="layui-input" lay-verify="required" placeholder="请输入登录密码" value="{$view.supplier_pass}" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">联系人</label>
						<div class="layui-input-block">
							<input type="text" name="ContactName" class="layui-input" lay-verify="required" placeholder="请输入联系人" value="{$view.contact_name}" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">联系电话</label>
						<div class="layui-input-block">
							<input type="text" name="ContactMobile" class="layui-input" lay-verify="required" placeholder="请输入联系电话" value="{$view.contact_mobile}" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">省/市/区</label>
						<div class="layui-input-inline">
							<select name="ProId" lay-filter="SelectPro" lay-search>
								<option value="">请选择省</option>
								{volist name="pro_list" id="p"}
									<option value="{$p.id}"  {eq name="$p.id" value="$view.pro_id"}selected{/eq}>{$p.name}</option>
								{/volist}
							</select>
						</div>
						<div class="layui-input-inline" id="CityList">
							<select name="CityId" lay-filter="SelectCity" lay-search>
								<option value="">请选择市</option>
								{volist name="cities_list" id="c"}
									<option value="{$c.id}"  {eq name="$c.id" value="$view.city_id"}selected{/eq}>{$c.name}</option>
								{/volist}
							</select>
						</div>
						<div class="layui-input-inline" id="DistrctList">
							<select name="DistrictId" lay-search>
								<option value="">请选择县/区</option>
								{volist name="distrinct" id="d"}
									<option value="{$d.id}"  {eq name="$d.id" value="$view.district_id"}selected{/eq}>{$d.name}</option>
								{/volist}
							</select>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">详细地址</label>
						<div class="layui-input-block">
							<input type="text" name="Address" lay-verify="title" autocomplete="off" placeholder="请输入详细地址" class="layui-input" value="{$view.address}" >
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">是否启用</label>
							<div class="layui-input-block">
								<input type="checkbox" name="show" class="isShow" title="启用" {eq name="$view.supplier_status" value="1"}checked{/eq} >
							</div>
						</div>
					</div>
				</div>
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<label class="layui-form-label">车型库</label>
						{volist name="f_c_list" id="f"}
							<div class="layui-input-block">
								<input type="checkbox" name="role_ids[]" lay-skin="primary" title="{$f.name}" value="{$f.id}" {in name="$f.id" value="$roles_ids"} checked {/in} >
							</div>
						{/volist}
					</div>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="hidden" name="supplier_id" class="" value="{$view.id}">
				<button class="layui-btn" lay-submit="" lay-filter="addSupplier">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="{$PUBLIC_STATIC_SRC.__ADMIN_JS__}/supplier/supplierAdd.js"></script>
</body>
</html>